package server.bootstrap;

import server.process.RequestProcessor;

import java.net.Socket;

/**
 * @Author: Hugh
 * @Date: 2020/6/1
 */
public class Minicat30ThreadBootStrap extends BaseBootStrap{

    /**
     * 多线程改造（不使用线程池）
     * @param socket socket
     * @throws Exception
     */
    @Override
    protected void doHandle(Socket socket) throws Exception {

        RequestProcessor requestProcessor = new RequestProcessor(socket,servletMap);
        requestProcessor.start();
    }

    @Override
    protected void init() throws Exception {
        //do nothing
    }

    @Override
    protected void loadServlet() throws Exception {
        commonloadServlet();
    }
}
